package com.hao.springcloud.hystrix;

import com.hao.springcloud.entities.CommonResult;
import com.hao.springcloud.entities.Payment;
import com.hao.springcloud.service.OrderFeignService;
import org.springframework.stereotype.Component;

/**
 * TODO
 *
 * @author 97472
 * @version 1.0
 * @date 2022/1/20 16:23
 */
@Component
public class OrderFeignServiceFallBack implements OrderFeignService {
    @Override
    public CommonResult<Payment> getPaymentById(Long id) {
        return null;
    }

    @Override
    public String getOk(Integer id) {
        return "OrderFeignServiceFallBack 的 getOk 方法服务调用异常处理";
    }

    @Override
    public String getTimeOut(Integer id) {
        return "OrderFeignServiceFallBack 的 getTimeOut 方法服务调用异常处理";
    }
}
